import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
# 窗口最大化
driver.maximize_window()

driver.get("https://www.bilibili.com/")
driver.find_element(By.TAG_NAME,"input").send_keys("唐朝诡事录")

time.sleep(5)
driver.close()